<fieldset class="column-left3" id="agrupacion">
<h2>Tabla de búsqueda</h2>
<% if @cultural_heritage_cultural_heritages.size > 0 %>

<br/>
<table class="paginated_table sorted_table" id="list_to_select" style="font-size: 9px;">
  <thead>
  <tr>
  <th>Código</th>
  <th>Nombre de Patrimonio</th>
  <th>Descripción</th>
    <%#*<th>Foundinid</th>%>
    <%#*<th>Alto</th>%>
    <%#*<th>Largo</th>%>
    <%#*<th>Ancho</th>%>
    <%#*<th>Peso</th>%>
  <th>Estado</th>
    <%#*<th>Grupo</th>%>
  <th>Subgrupo</th>
  <th>Tipología</th>
    <%#*<th>Tipo de Institucion Cultural</th>%>
    <%#*<th>Institucion Cultural</th>%>
    <%#*<th>Periodo</th>%>
  <th>Cultura</th>
    <%#*<th>Estilo</th>%>
    <%#*<th>Owner</th>%>
    <%#*<th>Autor</th>%>
    <%#*<th>Estado de Conservacion</th>%>
    <%#*<th>Estado de Integridad</th>%>
    <%#*<th>Forma</th>%>
    <%#*<th>Tecnica</th>%>
    <%#*<th>Tema</th>%>
    <%#*<th>Materiales</th>%>    
    <th>Acciones</th>    
  </tr>
</thead>
<tbody>
<% @cultural_heritage_cultural_heritages.each do |cultural_heritage_cultural_heritage| %>
  <tr >
    <td class="national_registration_code"><p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.nationalRegistrationCode %></p></td>
    <td class="name"><p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.name %></p></td>
    <td><p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.description %></p></td>
    <%#*<td><%= cultural_heritage_cultural_heritage.foundInId </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.height </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.long </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.width </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.weight </td>%>
    <td><p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.obj_state.name %></p></td>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_group </td>%>
    <td><p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.obj_subGroup.name %></p></td>
    <td>
    <% if !cultural_heritage_cultural_heritage.tipology.blank? %>
      <p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.obj_tipology.name %></p>
    <%end%>
    </td>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_typeCulturalInstitution </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_culturalInstitution </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_period </td>%>
    <td>
      <% if !cultural_heritage_cultural_heritage.culture.blank?  %>
        <p style="font-size: 9px"><%= cultural_heritage_cultural_heritage.obj_culture.name %></p>
      <%end%>
    </td>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_style </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_owner </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_author </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_conservationalState </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_integrityState </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_shape </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_technique </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.str_topic </td>%>
    <%#*<td><%= cultural_heritage_cultural_heritage.materials </td>%>
    <td>
      <a href="#" cultural-heritage-id='<%= cultural_heritage_cultural_heritage.id %>' class="js_link_cultural_heritage" title="Asociar">
        <img border="0" title="Asociar" src="/images/navi/0047-badge-circle-direction-right-16-ns.png" alt="Asociar" />
      </a>
      <!--<a href="#" cultural-heritage-id='<%#= cultural_heritage_cultural_heritage.id %>' class="js_link_cultural_heritage" title="Asociar">Asociar</a>-->
    </td>
    </tr>
<% end %>
    </tbody>
</table>
<% else %>
  <p>Ningún Patrimonio Cultural Encontrado</p>
<% end %>
  </fieldset>